home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 4 / QRZ Ham Radio Callsign Database - Volume 4.iso / digests / tcp / 940028.txt < prev    next >
Internet Message Format  |  1994-11-13  |  14KB

  1. Date: Mon, 31 Jan 94 04:30:01 PST
  2. From: Advanced Amateur Radio Networking Group <tcp-group@ucsd.edu>
  3. Errors-To: TCP-Group-Errors@UCSD.Edu
  4. Reply-To: TCP-Group@UCSD.Edu
  5. Precedence: Bulk
  6. Subject: TCP-Group Digest V94 #28
  7. To: tcp-group-digest
  8.  
  9.  
  10. TCP-Group Digest            Mon, 31 Jan 94       Volume 94 : Issue   28
  11.  
  12. Today's Topics:
  13.                             LINUX (2 msgs)
  14.            param slottime & persist command - description?
  15.                      Some Questions About Basics
  16.                      TCP WIN - the modifications
  17.                              Unsubscribe
  18.  
  19. Send Replies or notes for publication to: <TCP-Group@UCSD.Edu>.
  20. Subscription requests to <TCP-Group-REQUEST@UCSD.Edu>.
  21. Problems you can't solve otherwise to brian@ucsd.edu.
  22.  
  23. Archives of past issues of the TCP-Group Digest are available
  24. (by FTP only) from UCSD.Edu in directory "mailarchives".
  25.  
  26. We trust that readers are intelligent enough to realize that all text
  27. herein consists of personal comments and does not represent the official
  28. policies or positions of any party.  Your mileage may vary.  So there.
  29. ----------------------------------------------------------------------
  30.  
  31. Date: Sun, 30 Jan 1994 15:47:08 EET-2EEST
  32. From: "Markus Lamminmaki OH6LSA" <MARKUS@TECHNIS.vtyh.fi>
  33. Subject: LINUX
  34. To: tcp-group@ucsd.edu
  35.  
  36. >    I hope someone will come along with a public anonymous guest 
  37. >source for Linux.
  38.  
  39. ftp.funet.fi has Linux available by anonymous ftp. Try to have a look 
  40. in /pub/OS/Linux you will find all that you want from there to get 
  41. Linux upp and runing.
  42.  
  43. ---
  44. Vasa Polytechnic              Email: markus@technis.vtyh.fi
  45. PB 6, SF-65201, FINLAND              postmaster@vtyh.fi
  46. Fax: +358-61-3230 610         PS: Please, someone, make X.400 go away!
  47. Work:+358-61-3230 661         Home:  +358-61-3171 466
  48.  
  49.             Looks great on the outside, but Intel inside.
  50.  
  51. ------------------------------
  52.  
  53. Date: Sun, 30 Jan 1994 10:37:48 -0500
  54. From: "Brandon S. Allbery" <bsa@kf8nh.wariat.org>
  55. Subject: LINUX 
  56. To: tcp-group@ucsd.edu
  57.  
  58. In your message of Sun, 30 Jan 1994 15:47:08 +0700, you write:
  59. +---------------
  60. | >    I hope someone will come along with a public anonymous guest 
  61. | >source for Linux.
  62. | ftp.funet.fi has Linux available by anonymous ftp. Try to have a look 
  63. | in /pub/OS/Linux you will find all that you want from there to get 
  64. | Linux upp and runing.
  65. +------------->8
  66.  
  67. Also tsx-11.mit.edu and sunsite.unc.edu in the U.S. (some of the distributions 
  68. are a bit large for overseas FTP :-)
  69.  
  70. There are also dial-up bulletin boards which carry Linux; the list is posted to 
  71. comp.os.linux.announce once a month.  I'd include it but it has expired here.
  72.  
  73. ++Brandon
  74. --
  75. Brandon S. Allbery       kf8nh@kf8nh.ampr.org         bsa@kf8nh.wariat.org
  76. "MSDOS didn't get as bad as it is overnight -- it took over ten years
  77. of careful development."  ---dmeggins@aix1.uottawa.ca
  78.  
  79. ------------------------------
  80.  
  81. Date: Mon, 31 Jan 1994 03:24:45 +1030 (CST)
  82. From: gwillis@eleceng.adelaide.edu.au
  83. Subject: param slottime & persist command - description?
  84. To: tcp-group@ucsd.edu
  85.  
  86. Hello.
  87.  
  88. I have been trying to find an accurate consise description of exactly
  89. what the function of the 'persist' and 'slottime' functions are that
  90. are set using the param command in NOS and how these parameters
  91. affect radio channel performance. My understanding is that they are
  92. a replacement for DWAIT which is found in many TNC software EPROMS.
  93.  
  94. Could somebody point me in the direction of a document or file that
  95. describes this function? Also which layer of the OSI protocol stack
  96. do these functions belong to? (I am guessing level 1?)
  97.  
  98. Also I am interested to find out if there is any implementation of the
  99. T2 timer described in the AX.25 v2.0 protcol specification in the
  100. NOS package for AX.25 connections or IP virtual circuits carried on
  101. AX.25? (This parameter is the equivalent of what in the popular TNCs
  102. is seemingly called RESPTIME).
  103.  
  104. Cheers de Grant VK5ZWI
  105. --
  106. Grant Willis - Adelaide, South Australia    | Around here, talking to
  107. Internet: gwillis@eleceng.adelaide.edu.au   | yourself is a sign of Sanity!
  108. Packet Radio: VK5ZWI@VK5TTY.#ADL.#SA.AUS.OC +------------------------------
  109. Disclaimer: Thoughts expressed here are not those of any organisation.
  110.  
  111. ------------------------------
  112.  
  113. Date: Sun, 30 Jan 1994 22:03:24 -0500 (EST)
  114. From: John Stewart <JSTEWART@umiami.ir.miami.edu>
  115. Subject: Some Questions About Basics
  116. To: tcp-group@ucsd.edu
  117.  
  118.     I am trying to understand what interrupt buffers are used
  119. for in NOS? Are they used on both transmit and receive? 
  120.  
  121.     Given that ibufsize should be greater than or equal to MTU,
  122. does the TCP WINDOW setting have an effect on the number of buffers
  123. that you need?  
  124.  
  125.     Does the transmit queue length on the ATTACH PACKET statement
  126. have an effect on the number of buffers that you need?
  127.  
  128.     I have read the NOS documentation and some other references, but
  129. am still missing part of the story. Can someone enlighten me?
  130.  
  131. Thanks.
  132.  
  133. John, n4qi
  134. Internet: jstewart@umiami.ir.miami.edu
  135. AmprNet:  n4qi@n4qi.ampr.org
  136.  
  137. ------------------------------
  138.  
  139. Date: Mon, 31 Jan 94 10:06:21 GMT
  140. From: A.D.S.Benham@bnr.co.uk
  141. Subject: TCP WIN - the modifications
  142. To: TCP-Group@UCSD.Edu
  143.  
  144. Here (somewhat later than promised - humble apologies) are the modifications
  145. needed to get a "per interface" TCP window.
  146. Whilst putting the TCP window modifications in, you might like to put
  147. in another of my modifications, which allows for different AX.25 beacon
  148. text on different interfaces.
  149.  
  150. ==================
  151. File: IFACE.H
  152.  
  153. 1). Add two new variables to struct iface definition
  154.  
  155. was:
  156.     ....
  157.     int16 mtu;        /* Maximum transmission unit size */
  158.     int16 paclen;        /* AX.25 paclen, if applicable */
  159.  
  160.     int32 flags;        /* Configuration flags */
  161.     ....
  162.  
  163. now:
  164.     ....
  165.     int16 mtu;        /* Maximum transmission unit size */
  166.     int16 window;        /* TCP window  G8FSL */
  167.     int16 paclen;        /* AX.25 paclen, if applicable */
  168.     char *beacontext;    /* AX.25 beacon text, if applicable  G8FSL */
  169.  
  170.     int32 flags;        /* Configuration flags */
  171.     ....
  172.  
  173. =================
  174. File: IFACE.C
  175.  
  176. 1). Add new #include:
  177.  
  178.     #include "tcp.h"
  179.  
  180. 2). Add two function protypes:
  181.  
  182.     static int ifbeacon __ARGS((int argc,char *argv[],void *p));    /* G8FSL */
  183.     static int ifwindow __ARGS((int argc,char *argv[],void *p));    /* G8FSL */
  184.  
  185. 3). Add extra variables in definitions of "struct iface loopback" and
  186.     "struct iface Encap" (changes are identical):
  187.  
  188. were:
  189.     ....
  190.     MAXINT16,    /* mtu        No limit */
  191.     0,        /* AX.25 paclen, if applicable */
  192.     0,        /* flags    */
  193.     ....
  194.  
  195. now:    ....
  196.     MAXINT16,    /* mtu        No limit */
  197.     0,        /* window  G8FSL */
  198.     0,        /* AX.25 paclen, if applicable */
  199.     NULLCHAR,    /* AX.25 beacontext  G8FSL */
  200.     0,        /* flags    */
  201.     ....
  202.  
  203. 4). Add two entries in struct cmds Ifcmds[] (at the appropriate places to
  204.     be in alphabetical order):
  205.  
  206. #ifdef AX25
  207.     "beacontext",        ifbeacon,    0,    0,    NULLCHAR,
  208. #endif
  209.  
  210.     "window",        ifwindow,    0,    2,    NULLCHAR,
  211.  
  212. 5). Add line in function setencap():
  213.  
  214. was:
  215.     ifp->iftype = ift;
  216.     ifp->send = ift->send;
  217.  
  218. now:
  219.     ifp->iftype = ift;
  220.     ifp->window = 0;    /* G8FSL */
  221.     ifp->send = ift->send;
  222.  
  223. 6). Modify display routine in function showiface():
  224.  
  225.     tprintf("%-10s IP addr %s MTU %u Window %u Link encap ",ifp->name,
  226.       inet_ntoa(ifp->addr),(int)ifp->mtu,
  227.       ifp->window ? ifp->window : Tcp_window);    /* G8FSL */
  228.  
  229. 7). Add more display information in function showiface():
  230.  
  231. was:
  232.             if(ifp->iftype->type == CL_AX25)
  233.                 tprintf("   BBS Call %s   Paclen %d\n",
  234.                   (*ifp->iftype->format)(tmp,ifp->bbscall),
  235.                   (int)ifp->paclen);
  236.  
  237. now:
  238.             if(ifp->iftype->type == CL_AX25) {
  239.                 tprintf("   BBS Call %s   Paclen %d\n",
  240.                   (*ifp->iftype->format)(tmp,ifp->bbscall),
  241.                   (int)ifp->paclen);
  242.                 if (ifp->beacontext != NULLCHAR)
  243.                     tprintf("           Beacon: %s\n",
  244.                       ifp->beacontext);    /* G8FSL */
  245.             }
  246.  
  247. 8). Add two new functions:
  248.  
  249. #ifdef AX25
  250.  
  251. /* Set beacon text - G8FSL */
  252. static int
  253. ifbeacon(argc,argv,p)
  254. int argc;
  255. char *argv[];
  256. void *p;
  257. {
  258.     struct iface *ifp = p;
  259.  
  260.     if(ifp->iftype->type == CL_AX25){
  261.         if(ifp->descr != NULLCHAR){
  262.             free(ifp->beacontext);
  263.             ifp->beacontext = NULLCHAR;    /* reset the pointer */
  264.         }
  265.         if(!strlen(argv[1]))
  266.             return 0;    /* clearing the buffer */
  267.  
  268.         ifp->beacontext = malloc(strlen(argv[1])+1);
  269.         strcpy(ifp->beacontext, argv[1]);
  270.     }
  271.     return 0;
  272. }
  273.  
  274. #endif /* AX25 */
  275.  
  276. /* Set interface TCP window - G8FSL */
  277. static int
  278. ifwindow(argc,argv,p)
  279. int argc;
  280. char *argv[];
  281. void *p;
  282. {
  283.     struct iface *ifp = p;
  284.  
  285.     ifp->window = atoi(argv[1]);
  286.     return 0;
  287. }
  288.  
  289. ===========
  290. File TCPIN.C:
  291.  
  292. 1). Add an extra parameter to declaration of function proc_syn():
  293.  
  294. static void proc_syn __ARGS((struct tcb *tcb,char tos,struct tcp *seg,
  295.     struct iface *iface));    /* G8FSL */
  296.  
  297. 2). proc_syn() is called in two places. Add the new parameter in both cases:
  298.  
  299.     proc_syn(tcb,ip->tos,&seg,iface);
  300.  
  301. 3). Add the extra parameter to definition of proc_syn:
  302.  
  303. /* Process an incoming SYN */
  304. static void
  305. proc_syn(tcb,tos,seg,iface)    /* G8FSL */
  306. register struct tcb *tcb;
  307. char tos;
  308. struct tcp *seg;
  309. struct iface *iface;    /* G8FSL */
  310.  
  311. 4). Put window setting code in proc_syn():
  312.  
  313. was:
  314.     if((mtu = ip_mtu(tcb->conn.remote.address)) != 0){
  315.         /* Allow space for the TCP and IP headers */
  316.         mtu -= TCPLEN + IPLEN;
  317.         tcb->cwind = tcb->mss = min(mtu,tcb->mss);
  318.     }
  319.     /* See if there's round-trip time experience */
  320.  
  321. now:
  322.     if((mtu = ip_mtu(tcb->conn.remote.address)) != 0){
  323.         /* Allow space for the TCP and IP headers */
  324.         mtu -= TCPLEN + IPLEN;
  325.         tcb->cwind = tcb->mss = min(mtu,tcb->mss);
  326.     }
  327.     /* Alter the receive window according to the interface  G8FSL*/
  328.     if (iface->window != 0)
  329.         tcb->window = tcb->rcv.wnd = iface->window;
  330.     else
  331.         tcb->window = tcb->rcv.wnd = Tcp_window;
  332.     /* See if there's round-trip time experience */
  333.  
  334.  
  335. =================
  336. File AX25CMD.C
  337.  
  338. 1). Modify function ax_bc():
  339.  
  340. static void ax_bc(axif)
  341. struct iface *axif;
  342. {
  343.         struct mbuf *hbp;
  344.         int i;
  345.         char *beacontxtp;       /* G8FSL */
  346.         
  347.         /* prepare the header */
  348.  
  349.         if (axif->beacontext != NULLCHAR)    /* G8FSL */
  350.                 beacontxtp = axif->beacontext;
  351.         else
  352.                 beacontxtp = axbctext;
  353.  
  354.         i = strlen(beacontxtp);
  355.         if((hbp = alloc_mbuf(i)) == NULLBUF)
  356.                 return;
  357.                 
  358.         hbp->cnt = i;   
  359.         memcpy(hbp->data,beacontxtp,i);
  360.  
  361.         (*axif->output)(axif, Ax25multi[IDCALL], axif->hwaddr,
  362.                 PID_NO_L3, hbp);        /* send it */
  363.  
  364.         /*
  365.         ** Call another function to reset the timer...
  366.         reset_bc_timer();
  367.         */
  368. }
  369.  
  370. ===============
  371.  
  372. I =believe= this is an exhaustive list of the modifications I made. It's always
  373. possible I've missed something, so please let me know if there are problems.
  374.  
  375.  
  376. GENERAL NOTE - THIS APPLIES TO ALL USERS OF ALL NOS VERSIONS:
  377.  
  378. The TCP and IP parameters should =always= be set in the AUTOEXEC.NOS (or similar)
  379. file BEFORE any "start" commands are used to start the servers.
  380. If this is NOT done, then the servers take the default parameters hard-coded
  381. into NOS and the TCP and IP parameters set by the user only have effect on
  382. sessions initiated by the user.
  383.  
  384. 73,
  385. Andrew Benham G8FSL
  386. --------------------------------------------------------------------
  387. adsb@bnr.co.uk   BNR Europe Ltd, London Road, Harlow, Essex CM17 9NA
  388. adsb@bnr.ca      +44 279 402372    Fax: +44 279 402029
  389. Home:            g8fsl@g8fsl.ampr.org [44.131.19.165]
  390. --------------------------------------------------------------------
  391.  
  392. ------------------------------
  393.  
  394. Date: Mon, 31 Jan 94 06:32:22 GMT
  395. From: ian@g3nrw.demon.co.uk (Ian Wade)
  396. Subject: Unsubscribe
  397. To: tcp-group@ucsd.edu
  398.  
  399. Unsubscribe
  400. +---------------------------------+----------------------------------------+
  401. |  Ian Wade                       | e-mail:  ian @ g3nrw.demon.co.uk       |
  402. |  7 Daubeney Close, Harlington,  | AMPRnet: g3nrw.ampr.org [44.131.5.147] |
  403. |  Dunstable, Beds, LU5 6NF, UK.  | AX.25:   G3NRW @ GB7BIL.#27.GBR.EU     |
  404. +---------------------------------+----------------------------------------+
  405.  
  406. ------------------------------
  407.  
  408. Date: Mon, 31 Jan 1994 16:34:34 +1100
  409. From: janj@acci.com.au (Jan Jaeger)
  410. To: deyke@fc.hp.com, tcp-group@ucsd.edu
  411.  
  412. Subject: Wampes on IBM/RT (AOS)
  413.  
  414. Hi Dieter, 
  415.  
  416. I am finished with my port of wampes to the IBM RT running AOS.
  417. It basically consists of two parts, a tar file which creates
  418. an extra subdirectory called 'aos' which consist of a few library
  419. functions that are used by wampes, but are not supplied by AOS.
  420. Most of these are a quick port from FreeBSD. The second part is
  421. a patchfile for the rest of wampes, it will make all the nessesary
  422. updates to the source.  All AOS specific updates are ifdef'ed.
  423. I have in fact tried to recompile the whole lot on AIX V3 (RS6K)
  424. and it still works with all the AOS patches on.  There is one place
  425. where I have made a mod to the wampes code, and that is in n8250.c 
  426. where it allows for a device to be a tcp/ip socket.  I have added
  427. some code that it will also listen on the port given, so that 
  428. it can act as primary as well as secondary.  It is also fair to
  429. say that I have not put much efford into ttydriv.c it contains
  430. quite a few device specific things, and I have not implemented
  431. all of those for the ibm6153 terminal.  I do not know how many 
  432. people in the field would use an ibm6153.  
  433.  
  434. What is required on the IBM RT is:
  435.  
  436. 1)  AOS 
  437. 2)  patchkit for AOS as available on various internet ftp sites
  438. 3)  gnu make
  439. 4)  gnu patch
  440. 5)  gnu gcc (2.5.7)
  441. 6)  one line 'uname' shell script that echo's AOS
  442. 7)  ksh (for the configure script)
  443.  
  444. I have stored my updates on ftp.acci.com.au:/pub/aos, and will also
  445. upload them to ucsd.edu:/incoming. 
  446.  
  447. The files are: 
  448.  
  449. wampes-ibm032.patch.gz  -- patch file
  450. wampes-ibm032.tar.gz    -- aos library
  451.  
  452. All the patches are based on wampes-931106 and should be applied 
  453. as following:
  454.  
  455. mkdir wampes
  456. cd wampes 
  457. tar -xf /tmp/wampes-931106.tar
  458. tar -xf /tmp/wampes-ibm032.tar
  459. patch -p1 < /tmp/wampes-ibm032.patch
  460. make
  461.  
  462. Thats all.
  463.  
  464. Regards, Jan Jaeger PA3EFU/VK3CEX.  (janj@acci.com.au)
  465.  
  466. ------------------------------
  467.  
  468. End of TCP-Group Digest V94 #28
  469. ******************************
  470.